package com.mynameisguillaume.utils.font {	import flash.text.Font;		import flash.system.ApplicationDomain;	
	/**	 * @author guillaumebarbedette	 */	public class FontUtils 	{		public static function getFont(className : String) : String		{			var c : Class = ApplicationDomain.currentDomain.getDefinition(className) as Class;						if(FontRegister.registerFont(className))			{				Font.registerFont(c);				var f : Font = new c();				return f.fontName;			}			else			{				for (var i : int = 0;i < Font.enumerateFonts(false).length; i++)				{					if(Font(Font.enumerateFonts(false)[i]) == c)					{						c = null;						return  Font(Font.enumerateFonts(false)[i]).fontName;					}				}			}		}	}}